Java

Release Notes
JavaTM 2 SDK, Standard Edition
Version 1.4.0 Release Candidate



Contents

Overview
Networking
AWT
Java 2DTM Technology
Drag and Drop
Internationalization
Accessibility
CORBA, Java IDL, and Java RMI-IIOP
Virtual Machines
New I/O (NIO) APIs
Java Platform Debugger Architecture Technology
Java Web Start
Java Plug-in Technology on NetscapeTM 6.1 and 6.2 Browsers
Comformance on Solaris with OpenWindows
Platform Time Zone Detection on Microsoft Windows
Applet Class Bug
Linux Notes
Active X Bridge Removed
Forte for Java and NetBeans
Tools and Utilities
Jar File Changes

Overview

The JavaTM 2 SDK, Standard Edition, v1.4.0 (J2SDK 1.4.0) is an upgrade release of the Java platform containing new features and enhancements in many functional areas. The new features in J2SDK 1.4.0 are being developed in accordance with the Java Community ProcessSM program.

 

Networking

For information on known bugs and other issues in the networking functionality of this release, see Networking Release Notes.

AWT

The following notes pertain to AWT functionality in this release.

Java 2DTM Technology

The following notes pertain to Java 2D functionality in this release.

Drag and Drop

The following notes pertain to drag-and-drop functionality in this release.

Internationalization

Currency for European Monetary Union - The default currency used by the java.text.NumberFormat, DecimalFormat, and DecimalFormatSymbol classes for the member countries of the European Monetary Union changes to the Euro for all instances created after 1/1/2002, 0:00 local time of the respective countries. Applications can use new API on these classes and the new java.util.Currency class to specify the currency used. See Request-for-Enhancements 4311107 and 4290801.

A new method, "createInputMethodJFrame", has been added to the java.awt.im.spi.InputMethodContext interface to provide Java input methods with Swing based input method windows. Adding a new method to an existing interface usually breaks the upward binary compatibility, but as the java.awt.im.spi.InputMethodContext interface is implemented only by the JRE, there is no compatibility problem for existing Java applications. When writing new Java input methods based on the J2SDK  1.4.0, input method implementors are encouraged to use the reflection mechanism to call this method since it is not available in prior releases.

Accessibility

Method AccessibleJComboBox.getAccessibleSelection(int) works incorrectly in this release. It always returns null. This problem is being tracked as bug 4401715, and it will be fixed in the final release of the J2SE 1.4.0 platform.

CORBA, Java IDL, and Java RMI-IIOP

Limitations for Java IDL and Java RMI-IIOP - For information on limitations regarding the use of Java IDL and Java RMI-IIOP, please read the document Limitations for Java IDL and Java RMI-IIOP.

Virtual Machines

The following notes pertain to the virtual machines in J2SDK 1.4.0.

New I/O (NIO) APIs

These notable NIO bugs exists in this release:

For information about NIO, see the main and supplemental NIO documentation.

Java Platform Debugger Architecture Technology

The following problems pertain to the HotSwap functionality of the Java Platform Debugger Architecture technology.

Java Web Start

The following notes pertain to Java Web Start 1.0.1_02, which is included in J2SE 1.4.0.

Java Plug-in Technology on NetscapeTM 6.1 and 6.2 Browsers

The regxpcom functionality of Netscape 6.1 and 6.2 browsers has a bug that affects the registering of the Java Plug-in product. (See Bugzilla bug 112201.) Regxpcom may not finish until a reboot (on version 6.1 browsers) or it may crash (on version 6.2 browsers). One possible symptom of this bug: Users of Netscape 6.1 browsers who try to configure the Java Plug-in control panel to use Netscape 6 will find that Netscape 6 is never registered. This may lead the users to repeatedly select Netscape 6 in the control panel which will only start multiple regxpcom processes running endlessly in the background, using up the CPU. This problem is fixed in version 6.2.1 of the Netscape browser.

Conformance on Solaris with OpenWindows

When running J2SE 1.4.0 on the Solaris operating environment, behavior in conformance with the Java 2 Platform specification is not guaranteed when using OpenWindows. In particular, some APIs related to handling focus, such as the Component.requestFocus() method, fail when using OpenWindows. This problem is due to a bug in OpenWindows. See the bug description for 4505899 for more information.

This bug does not exist in the CDE window manager.

Platform Time Zone Detection on Microsoft Windows

If you select a time zone that doesn't observe daylight saving time (e.g., Tokyo Standard Time) on installation of a Microsoft Windows operating system, that selection may turn off the global system setting "Automatically adjust clock for daylight saving changes." Under this setting, the Java runtime detects the platform time zone in the GMT offset format (e.g., "GMT+09:00"), not as a time zone ID (e.g., "Asia/Tokyo"). To fix this installation problem, take the following steps after the installation (unless you intend to turn off the setting):
  1. Open Date/Time in Control Panel.
  2. On the Time Zone tab, choose a time zone that observes daylight saving time (e.g., "(GMT-08:00) Pacific Time (US & Canada); Tijuana"), select the "Automatically adjust clock for daylight saving changes" check box, and press the Apply button.
  3. Choose your time zone back and press the OK button.

Applet Class Bug

Method java.applet.getDocumentBase() is supposed to return the absolute URL of the directory of the document containing the applet. Method java.applet.getCodeBase() is supposed to return the URL of the applet itself. In the Java 2 SDK, the behavior of these two methods is reversed. This problem is being tracked as bug 4456393.

Linux Notes

Behavior in comformance with the API specification is not guaranteed while running as superuser on any version of Linux whose kernel was compiled with the CONFIG_IP_TRANSPARENT_PROXY option. The default kernel shipped with the RedHat 6.2 distribution is compiled with this option. To avoid incompatibilities associated with this problem, either do not use the Java platform while superuser or else upgrade to a Linux operating system whose kernel was not compiled with the CONFIG_IP_TRANSPARENT_PROXY option. Red Hat 7.1 ships with the version 2.4 kernel which does not have this problem.

Active X Bridge Removed

The Active X Bridge has been removed in J2SE 1.4.0.

Forte for Java and NetBeans

Forte for Java 3.0 and NetBeans 3.2.1 will work in conjunction with J2SE 1.4.0. However, Forte for Java 2.0 and NetBeans 3.2 do not work with J2SE 1.4.0.

Tools and Utilities

The following notes pertain to the tools and utilities in this release.

Jar File Changes

File rt.jar no longer contains directory entries such as java/ and java/io/. It contains only entries for actual class files, such as java/io/InputStream.class. Likewise, file charsets.jar no longer contains directory entries.